core: Drop unix::is-mountpoint from fast queryinfo flags
authorColin Walters <walters@verbum.org>
Thu, 22 Dec 2011 16:07:55 +0000 (11:07 -0500)
committerColin Walters <walters@verbum.org>
Thu, 22 Dec 2011 16:07:55 +0000 (11:07 -0500)
If this is present, we call access() and stat() on the parent
directory.

src/libotutil/ot-gio-utils.h

index ef0f0b35564e65466c82c57a481b92a040666d76..8a460692f03d5d1e1991caea83534182e68f21fb 100644 (file)
 
 G_BEGIN_DECLS
 
-#define OSTREE_GIO_FAST_QUERYINFO "standard::name,standard::type,standard::is-symlink,standard::symlink-target,standard::is-hidden,unix::*"
+/* Basically the stuff that comes from stat() and cheap calls like
+ * readlink().  Other things require opening the file, or also
+ * stat()ing the parent directory.
+ */
+#define OSTREE_GIO_FAST_QUERYINFO ("standard::name,standard::type,standard::is-symlink,standard::symlink-target,standard::is-hidden," \
+                                   "unix::device,unix::inode,unix::mode,unix::uid,unix::gid,unix::rdev")
 
 GFileType ot_gfile_type_for_mode (guint32 mode);